﻿using Microsoft.EntityFrameworkCore.Metadata.Builders;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.Json.Serialization;

namespace HangYi_Coffee_Class
{
    /// <summary>
    /// 杯型表
    /// </summary>
    /// <returns></returns>
    public class Cup_typeOption
    {
        /// <summary>
        /// 编号id
        /// </summary>
        /// <returns></returns>

        [Key] // 指定主键属性  
        public int Id { get; set; }
        /// <summary>
        /// 杯型名称
        /// </summary>
        /// <returns></returns>
        public string? Cup_ption { get; set; }
        /// <summary>
        /// 所属商品
        /// </summary>
        /// <returns></returns>
        [JsonIgnore]
        public Commodity? Commodity { get; set; }
    }
}
